package study.mybatis.main;

import org.apache.ibatis.reflection.property.PropertyTokenizer;

public class Main1 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		PropertyTokenizer pt = new PropertyTokenizer("user[i].department.code");
		while(pt.hasNext()){
			System.out.printf("name: %10s , children: %20s , index: %10s, indexName: %10s \r\n",pt.getName(),pt.getChildren(),pt.getIndex(),pt.getIndexedName());
			pt = pt.next();
		}
		System.out.printf("name: %10s , children: %20s , index: %10s, indexName: %10s \r\n",pt.getName(),pt.getChildren(),pt.getIndex(),pt.getIndexedName());
	}
	
	
	

}
